//package com.liyiqing.secondhandmall.orderservice.interceptor;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//import javax.annotation.Resource;
//
///**
// * 配置token拦截器
// */
//@Configuration
//public class InterceptorConfig implements WebMvcConfigurer {
//
//    @Resource
//    private TokenInterceptor tokenInterceptor;
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(tokenInterceptor).addPathPatterns("/**");
////        registry.addInterceptor(new TokenInterceptor()).addPathPatterns("/Login/login");
////        registry.addInterceptor(new TokenInterceptor()).excludePathPatterns("/Login/login");
//    }
//}
